<?php
    $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl('course/printCourse'),
	'method'=>'get',
    ));
    $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'courseList',
	'dataProvider'=>$dataProvider,
        'selectableRows' => 8,
	'columns'=>array(
             array(
                'class'=>'CCheckBoxColumn',
                 'id'=>'selectedItems'
            ),
            array(
                'name'=>'id',
                'value'=>'$data->id'
            ),
            array(
                'name'=>'Phụ huynh',
                'value'=>'$data->parent_name'
            ),
            array(
                'name'=>'Quận',
                'value'=>'$data->district->name'
            ),
            array(
                'name'=>'Lớp',
                'value'=>'$data->level->name'
            ),
            array(
                'name'=>'Mon',
                'value'=>'$data->getSubjects()'
            ),
            array(
                'name'=>'Luong',
                'value'=>'$data->salary'
            ),
            array(
                'name'=>'Han ngay',
                'value'=>'$data->limit_date'
            ),
            array(
		'class'=>'CButtonColumn',
            ),
	),
));
    echo CHtml::submitButton('In ấn');
    $this->endWidget();
?>